<?php

$users = [
    ['name' => '小明', 'age' => 20],
    ['name' => '小李', 'age' => 11],
    ['name' => '小华', 'age' => 21],
];
// array_filter用于数组过滤，返回过滤后新的数组
$filterUsers = array_filter($users, function($user) {
   return $user['age'] > 20;
});
print_r($filterUsers);
echo PHP_EOL;
$mapUsers = array_map(function ($user) {
    return implode('--', array_values($user));
}, $users);
print_r($mapUsers);
echo basename('/tmp/foo.jpg');